package com.cc.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cc.entity.User;

public interface UserDynamicSqlMapper {
    //1.根据传入的user对象，查询用户给信息
    List<User> findUserByConditionIf(User user);
    
    List<User> findUserByConditionTrim(User user);
    
    List<User> findUserByConditionChoose(User user);
    
    int updateUserByConditionSet(User user);
    
    //根据多个id值查询多个用户的信息
    List<User> findUserByConditionForeach(@Param("ids")List<Integer> ids);
    
    //批量添加  mysql 
    int insertBatchForeach(@Param("users")List<User> users);
    
    int insertUsersORCL(@Param("users")List<User> users);
    
    List<User> findByConditionInnerParamater(User user);
    
    
}
